import request from '@/utils/request'

// 查询分割算法柜型设置
export function listSegContainerType(query) {
  return request({
    url: '/segmentationAlgo/seg-container-type-config/list',
    method: 'get',
    params: query
  })
}

// 查询分割算法柜型设置
export function getSegContainerType(id) {
  return request({
    url: '/segmentationAlgo/seg-container-type-config/' + id,
    method: 'get'
  })
}

// 新增分割算法SKU
export function addSegContainerType(data) {
  return request({
    url: '/segmentationAlgo/seg-container-type-config',
    method: 'post',
    data: data
  })
}

// 修改分割算法SKU
export function updateSegContainerType(data) {
  return request({
    url: '/segmentationAlgo/seg-container-type-config',
    method: 'put',
    data: data
  })
}

// 逻辑删除分割算法SKU
export function removedSegContainerType(id) {
  return request({
    url: '/segmentationAlgo/seg-container-type-config/' + id,
    method: 'delete'
  })
}
